#include "QSimpleLogger.h"
#include "QFriendlyCameraViewer.h"
#include <QtGui/QApplication>
#include <QTextCodec>
#include <QDir>


#define APP_VERSION     "0.1.0"
#define APP_NAME        "QFriendlyCameraViewer"
#define LOG_FILE        "viewer.log"


#ifdef __arm__
#define WRITE_LOG_FILE  false
#else
#define WRITE_LOG_FILE  true
#endif


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QSimpleLoggerInstall(APP_NAME, APP_VERSION, WRITE_LOG_FILE, LOG_FILE);

    IPCameraViewer w;

#ifdef __arm__
    w.showFullScreen();
    a.setOverrideCursor(QCursor(Qt::BlankCursor));
#else
    w.show();
#endif
   
    int ret = a.exec();

    QSimpleLoggerUninstall();
    return ret;
}

